<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="bootstrap-4.6.1-dist/css/bootstrap.min.css"
          rel="stylesheet"type="text/css">
    <style type="text/css">
        #main{
            /*外边距*/
            margin-top: 20px;
            /*内填充*/
            padding-top: 40px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
<div id="main">
    <form id="form">
        <div class="form-group row">
            <label class="col-form-label col-2 text-center">账号:</label>
            <div class="col-8">
                <input type="text" name="usre1" class="form-control">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-form-label col-2 text-center">密码:</label>
            <div class="col-8">
                <input type="password" name="usre2" class="form-control">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-form-label col-2 text-center">性别:</label>
            <div class="col-8">
                <select name="userSex" class="form-control">
                    <option value="1">男</option>
                    <option value="2">女</option>
                </select>
            </div>
        </div>
        <div class="form-group cow">
            <label class="col-form-label col-2"></label>
            <div class="col-8">
                <button type="button" class="btn btn-lg btn-info">提交</button>
                <button type="reset" class="btn btn-lg btn-danger">重置</button>
        </div>
        </div>
    </form>
</div>
</body>
</html>